package Com.amit.Reflection;

import java.lang.reflect.Method;

public class Lab8 {

	
	public static void main(String[] args) throws Exception {
		
		Class c=Class.forName("Com.amit.Reflection.A");
		
		Object obj=c.newInstance();
		
		Method m=c.getDeclaredMethod("message", null);
		
		m.setAccessible(true);
		m.invoke(obj, null);
		
		
	
		
	}

}
